/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package operators;

import lab4.WaterCupState;
import templates.Operator;

/**
 *
 * @author morar.ciprian
 */
public  class Empty2 implements Operator <WaterCupState>{

    public boolean available(WaterCupState t) {
        if ( t.getCapacity2 ()!= 0)
        return true;
        else return false;
    }

    public WaterCupState execute(WaterCupState t) {
        return new WaterCupState(t.getCapacity1(),0);
    }

    public int getOperatorNumber() {
        return 4;
    }

}
